package com.zc.campus_shops.service;


import com.zc.campus_shops.dto.ImageHolder;
import com.zc.campus_shops.dto.ShopExecution;
import com.zc.campus_shops.entity.Shop;
import com.zc.campus_shops.exception.ShopOperationException;

public interface ShopService {
	
	/**
	 * 根据ShopCondition分页返回相应的列表数据
	 * @param shopCondition
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	
	public ShopExecution getShopList(Shop shopCondition,int pageIndex,int pageSize);
	/**
	 * 根据shopId 获取店铺信息
	 * @param shopId
	 * @return Shop
	 */
	Shop getByShopId(long shopId);
	
	/**
	 * 更新店铺信息 包括对图片处理  
	 * @param shop
	 * @param shopImgInputStream
	 * @param fileName
	 * @return
	 * @throws ShopOperationException
	 */
	ShopExecution modifyShop(Shop shop ,ImageHolder thumbnail) throws ShopOperationException;
	
	/**
	 * 注册店铺 包括对图片处理  
	 * @param shop
	 * @param shopImgInputStream
	 * @param fileName
	 * @return
	 * @throws ShopOperationException
	 */
	ShopExecution addShop(Shop shop ,ImageHolder thumbnail) throws ShopOperationException;

}
